<!-- sidebar: Stuff that goes in the sidebar column (by default, the narrower right column) -->
<div id="sidebar">
<ul>
<?php if(is_home()) { ?>
<li class="box">
	<h4>About</h4>
		<img src="<?php bloginfo('stylesheet_directory');?>/images/profile.jpg" alt="Profile" class="profile" />
		<p><strong><?php bloginfo('name');?></strong><br/><?php bloginfo('description');?>.<br/>
			There are <?php global $numposts; echo $numposts; ?> Posts and <?php global $numcmnts; echo $numcmnts;?> Comments so far.
		</p>		
</li>
<?php } ?>
<?php if ( function_exists('dynamic_sidebar') && dynamic_sidebar() ) : else : ?>
<li class="box">
	<h4><?php _e('Archives'); ?></h4>
	<ul><?php wp_get_archives('type=monthly&show_post_count=true'); ?></ul>
</li>

<li class="box">
	<h4><?php _e('Tags'); ?></h4>
	<ul>
		<?php wp_list_cats('optioncount=1');    ?>
	</ul>		
</li>

<li class="box">
	<h4><?php _e('Pages'); ?></h4>
	<ul><?php wp_list_pages('title_li=' ); ?></ul>	
</li>
<?php if(is_home()) { ?>
<li class="box">
	<h4><?php _e('Links'); ?></h4>
	<ul><?php get_links_list('name'); ?> </ul>		
</li>
<li class="box">
	<h4>Feed on RSS</h4>
	<ul class="feeds">
		<li>
			<a href="<?php bloginfo('rss2_url'); ?>" title="RSS Feed for Posts">Posts</a>
		</li>
		<li>
			<a href="<?php bloginfo('comments_rss2_url'); ?>" title="RSS Feed for Comments">Comments</a>
		</li>
	</ul>
</li>
<li class="box">
	<h4><?php _e('Meta'); ?></h4>
	<ul>
		<?php wp_register(); ?>
		<li><?php wp_loginout(); ?></li>
		<li><a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional">Valid <abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a></li>
		<li><a href="http://gmpg.org/xfn/"><abbr title="XHTML Friends Network">XFN</abbr></a></li>
		<li><a href="http://wordpress.org/" title="Powered by WordPress, state-of-the-art semantic personal publishing platform.">WordPress</a></li>
		<?php wp_meta(); ?>
	</ul>	
</li>
<?php }?>
  <?php endif; ?>
</ul>	
</div><!-- sidebar area end -->